package com.jiuyue.redis.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

import com.jiuyue.redis.entity.User;
import com.jiuyue.redis.service.UserService;

@Service
public class UserServiceImpl implements UserService{

	@Override
	public List<User> selectUserListAll() {
		// TODO 自动生成的方法存根
		 List<User> users = new ArrayList<>();
	      User user1 = new User("阿达","1",88);
	      User user2 = new User("阿港","2",90);
	      User user3 = new User("阿硕","3",60);
	      User user4 = new User("阿涂","4",78);
	      User user5 = new User("阿俊","5",78);
	      users.add(user1);
	      users.add(user2);
	      users.add(user3);
	      users.add(user4);
	      users.add(user5);
	      return users;
	}

}
